package main;

class ControlPoint extends Object {

	public static final int POINT_SIZE = 6;

	public int x;
	public int y;

	public ControlPoint(int a, int b) {
		this.x = a;
		this.y = b;
	}

	public boolean within(int a, int b) {
		if (a >= x - POINT_SIZE && b >= y - POINT_SIZE && a <= x + POINT_SIZE
				&& b <= y + POINT_SIZE)
			return true;
		else
			return false;
	}
}
